package com.zhuiYun.project.api.order.controller;

import com.zhuiYun.project.annotation.OptLog;
import com.zhuiYun.project.api.order.model.CommorderModel;
import com.zhuiYun.project.api.order.model.diyorderModel;
import com.zhuiYun.project.api.order.service.CommorderService;
import com.zhuiYun.project.common.response.CommonConstants;
import com.zhuiYun.project.common.response.CommonResult;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("/commorder")
@Slf4j
public class CommorderCtroller {

    @Autowired
    CommorderService commorderService;


    /**
     * @Author 小江
     * @Description //TODO 所有订单查询
     * @Date 15:00 2023/4/18
     **/
    @GetMapping("commorderlist")
    @ApiOperation(value = " 商品订单管理的查询方法")
    @OptLog(modular = "diy订单管理", type = CommonConstants.ADD, describe = "查询订单")
    CommonResult commorderlist(CommorderModel commorderModel) {
        CommonResult commonResult = commorderService.commorderlist(commorderModel);
        return commonResult;
    }



}
